package com.example.edupublisher.service.imp;


import com.example.edupublisher.bean.ExamDurationStats;
import com.example.edupublisher.bean.ExamStats;
import com.example.edupublisher.mapper.ExamMapper;
import com.example.edupublisher.service.ExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamServiceImpl implements ExamService {
    @Autowired
    ExamMapper ExamMapper;

    @Override
    public List<ExamStats> getCourseExamStats(Integer date) {
        return ExamMapper.selectCourseExam(date);
    }

    @Override
    public List<ExamDurationStats> getExamDurationStats(Integer date) {
        return ExamMapper.selectDurationStats(date);
    }
}
